package com.zhiqin.generateCode.enums;

import lombok.Getter;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
public enum FieldType {
    VARCHAR("varchar", String.class.getSimpleName()),
    LONGTEXT("longtext", String.class.getSimpleName()),
    TEXT("text", String.class.getSimpleName()),
    INT("int", Integer.class.getSimpleName()),
    BIGINT("bigint", BigInteger.class.getSimpleName()),
    TIMESTAMP("timestamp", Long.class.getSimpleName()),
    DATETIME("datetime", LocalDateTime.class.getSimpleName()),
    DATE("date", LocalDate.class.getSimpleName()),
    CHAR("char", String.class.getSimpleName()),
    TINYINT("tinyint", Boolean.class.getSimpleName()),
    DOUBLE("double", BigDecimal.class.getSimpleName()),

    ;

    private String code;

    private String message;

    FieldType(String code, String message) {
        this.code = code;
        this.message = message;
    }
}


